package cn.wolfcode.luowowo.search.service.impl;

import cn.wolfcode.luowowo.search.domain.UserInfoEs;
import cn.wolfcode.luowowo.search.repository.IUserInfoEsRepository;
import cn.wolfcode.luowowo.search.service.IUserInfoEsService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class UserInfoEsServiceImpl implements IUserInfoEsService {

    @Autowired
    private IUserInfoEsRepository userInfoEsRepository;

    @Override
    public void save(UserInfoEs userInfoEs) {
        userInfoEsRepository.save(userInfoEs);
    }

    @Override
    public List<UserInfoEs> findByDestName(String destName) {
        return userInfoEsRepository.findByDestName(destName);
    }
}
